﻿using SqlSugar;

namespace LowCoding.Domain.Entity
{
    /// <summary>
    /// 用户列名表
    /// </summary>
    [SugarTable("SYSUSERCOLUMN")]
    public class SysUserColumn
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(ColumnName = "SUCUSRID", IsOnlyIgnoreUpdate = true)]
        public string UsrId { get; set; }

        /// <summary>
        /// 模块ID
        /// </summary>
        [SugarColumn(ColumnName = "SUCMDLID", IsOnlyIgnoreUpdate = true)]
        public string MdlId { get; set; }

        /// <summary>
        /// 列表代码
        /// </summary>
        [SugarColumn(ColumnName = "SUCTABLECODE", IsOnlyIgnoreUpdate = true)]
        public string TableCode { get; set; }

        /// <summary>
        /// 列名json内容集合
        /// </summary>
        [SugarColumn(ColumnName = "SUCJSON")]
        public string SucJson { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        [SugarColumn(ColumnName = "CREATED", IsOnlyIgnoreUpdate = true)]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 新增人员
        /// </summary>
        [SugarColumn(ColumnName = "CREATOR", IsOnlyIgnoreUpdate = true)]
        public string Creator { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIED")]
        public DateTime? Lastmodified { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIER")]
        public string Lastmodifier { get; set; }

        /// <summary>
        /// 是否删除(1 为删除  0和空 为 未删除)
        /// </summary>
        [SugarColumn(ColumnName = "ISDEL", IsOnlyIgnoreUpdate = true)]
        public string Isdel { get; set; }

        /// <summary>
        /// 修改次数
        /// </summary>
        [SugarColumn(ColumnName = "VERSION")]
        public int Version { get; set; }
    }
}
